<%
	var edit = hasPrivilegeUrl("/jf/dict/edit");
	var delete = hasPrivilegeUrl("/jf/dict/delete");
%>

<% for(dict in list){ %>
   	<tr id="${dict.ids!}" pId="${dict.parentids!}" hasChild='${dict.levels! != 4 ? "true" : "false"}'>
		<td>
			<% if(dict.levels == "1"){ %>
				<img alt="" src="${cxt!}/jsFile/zTree/css/zTreeStyle/img/diy/1_open.png">
			<% }else if(dict.levels == "2"){ %>
				<img alt="" src="${cxt!}/jsFile/zTree/css/zTreeStyle/img/diy/2.png">
			<% }else if(dict.levels == "3"){ %>
				<img alt="" src="${cxt!}/jsFile/zTree/css/zTreeStyle/img/diy/3.png">
			<% } %>
			<span controller='true'>${dict.levels }级</span>
		</td>
		<td>${dict.names }</td>
		<td>
			<% if(dict.levels != 0){ %>
				<% if(edit == true){ %>
					<a href='#' onclick='update("${dict.ids!}")'>修改</a>&nbsp;&nbsp;
				<% } %>
				<% if(delete == true){ %>
					<a href='#' onclick='deleteFunc("${dict.ids!}")'>删除</a>
				<% } %>
			<% } %>
		</td>
	</tr>
<% } %>